import Vue from 'vue'
import App from './App.vue'
import "@/mobile/flexible" //适配网页大小
import "@/styles/reset.css" //初始化css文件
import router from "@/router/index" //路由对象
import { Tabbar, TabbarItem, NavBar, Col, Row, Image as VanImage, Cell, CellGroup, Icon, Search, List } from 'vant'; //tabbar底部标签


// import { recommendMusicAPI } from '@/api'
// async function fn() {
//     const res = await recommendMusicAPI() // api方法原地会得到axios请求在原地的Promise对象(里面有一个ajax请求)
//     console.log(res);
// }
// fn()
Vue.config.productionTip = false


Vue.use(Tabbar);
Vue.use(TabbarItem)
Vue.use(NavBar)
Vue.use(Col);
Vue.use(Row);
Vue.use(VanImage);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Icon);
Vue.use(Search);
Vue.use(List);
new Vue({
    router,
    render: h => h(App),
}).$mount('#app')